/*
 * 保险
 * <p>根据银保监会的文件要求，保险行业财产险公司的车险业务，用户在投保缴费（微信&amp;支付宝&amp;银行卡）之前，必须要完成支付人的实名验证，确保支付人与投保人一致才能缴费。目前实名认证存在四种模式，分别为：中保信模式、上海模式、深圳模式和江苏模式，其中中保信模式和上海模式要求支付机构与实名平台专线对接（已有专线），深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接，所以部署一套单独的保险实名认证服务在易宝中台，支撑保险商户业务的正常进行。</p>
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package com.yeepay.yop.sdk.service.insurance.model;

import org.apache.commons.lang3.ObjectUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.yeepay.yop.sdk.service.insurance.model.RealnameAuthCustomerDataDTOResult;
import java.util.ArrayList;
import java.util.List;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.HashMap;
import java.util.Map;

/**
 * RealnameAuthCommonInsurResponseDTOResult
 */
public class RealnameAuthCommonInsurResponseDTOResult implements Serializable{

  private static final long serialVersionUID = 1L;

  /**
   * 未命名
   */
  @JsonProperty("code")
  private String code = null;

  /**
   * 未命名
   */
  @JsonProperty("msg")
  private String msg = null;

  /**
   * 状态
   */
  @JsonProperty("status")
  private String status = null;

  /**
   * 客户编号
   */
  @JsonProperty("customerNo")
  private String customerNo = null;

  /**
   * 商户编号
   */
  @JsonProperty("merchantNo")
  private String merchantNo = null;

  /**
   * 查询编号
   */
  @JsonProperty("queryNo")
  private String queryNo = null;

  /**
   * 终端号
   */
  @JsonProperty("terminalNo")
  private String terminalNo = null;

  /**
   * 交易流水号
   */
  @JsonProperty("tradeNo")
  private String tradeNo = null;

  /**
   * 金额
   */
  @JsonProperty("amount")
  private String amount = null;

  /**
   * 认证序列号
   */
  @JsonProperty("validateSequenceNo")
  private String validateSequenceNo = null;

  /**
   * 实名缴费标识
   */
  @JsonProperty("pealNamePaymentFlag")
  private String pealNamePaymentFlag = null;

  /**
   * 请求类型
   */
  @JsonProperty("requestType")
  private String requestType = null;

  /**
   * 请求编码
   */
  @JsonProperty("requestCode")
  private String requestCode = null;

  /**
   * 业务交易完成时间
   */
  @JsonProperty("transDate")
  private String transDate = null;

  /**
   * 客户信息集合
   */
  @JsonProperty("customerDataDTOS")
  private List<RealnameAuthCustomerDataDTOResult> customerDataDTOS = null;

  public RealnameAuthCommonInsurResponseDTOResult code(String code) {
    this.code = code;
    return this;
  }

   /**
   * 未命名
   * @return code
  **/

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public RealnameAuthCommonInsurResponseDTOResult msg(String msg) {
    this.msg = msg;
    return this;
  }

   /**
   * 未命名
   * @return msg
  **/

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }

  public RealnameAuthCommonInsurResponseDTOResult status(String status) {
    this.status = status;
    return this;
  }

   /**
   * 状态
   * @return status
  **/

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public RealnameAuthCommonInsurResponseDTOResult customerNo(String customerNo) {
    this.customerNo = customerNo;
    return this;
  }

   /**
   * 客户编号
   * @return customerNo
  **/

  public String getCustomerNo() {
    return customerNo;
  }

  public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult merchantNo(String merchantNo) {
    this.merchantNo = merchantNo;
    return this;
  }

   /**
   * 商户编号
   * @return merchantNo
  **/

  public String getMerchantNo() {
    return merchantNo;
  }

  public void setMerchantNo(String merchantNo) {
    this.merchantNo = merchantNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult queryNo(String queryNo) {
    this.queryNo = queryNo;
    return this;
  }

   /**
   * 查询编号
   * @return queryNo
  **/

  public String getQueryNo() {
    return queryNo;
  }

  public void setQueryNo(String queryNo) {
    this.queryNo = queryNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult terminalNo(String terminalNo) {
    this.terminalNo = terminalNo;
    return this;
  }

   /**
   * 终端号
   * @return terminalNo
  **/

  public String getTerminalNo() {
    return terminalNo;
  }

  public void setTerminalNo(String terminalNo) {
    this.terminalNo = terminalNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult tradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
    return this;
  }

   /**
   * 交易流水号
   * @return tradeNo
  **/

  public String getTradeNo() {
    return tradeNo;
  }

  public void setTradeNo(String tradeNo) {
    this.tradeNo = tradeNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult amount(String amount) {
    this.amount = amount;
    return this;
  }

   /**
   * 金额
   * @return amount
  **/

  public String getAmount() {
    return amount;
  }

  public void setAmount(String amount) {
    this.amount = amount;
  }

  public RealnameAuthCommonInsurResponseDTOResult validateSequenceNo(String validateSequenceNo) {
    this.validateSequenceNo = validateSequenceNo;
    return this;
  }

   /**
   * 认证序列号
   * @return validateSequenceNo
  **/

  public String getValidateSequenceNo() {
    return validateSequenceNo;
  }

  public void setValidateSequenceNo(String validateSequenceNo) {
    this.validateSequenceNo = validateSequenceNo;
  }

  public RealnameAuthCommonInsurResponseDTOResult pealNamePaymentFlag(String pealNamePaymentFlag) {
    this.pealNamePaymentFlag = pealNamePaymentFlag;
    return this;
  }

   /**
   * 实名缴费标识
   * @return pealNamePaymentFlag
  **/

  public String getPealNamePaymentFlag() {
    return pealNamePaymentFlag;
  }

  public void setPealNamePaymentFlag(String pealNamePaymentFlag) {
    this.pealNamePaymentFlag = pealNamePaymentFlag;
  }

  public RealnameAuthCommonInsurResponseDTOResult requestType(String requestType) {
    this.requestType = requestType;
    return this;
  }

   /**
   * 请求类型
   * @return requestType
  **/

  public String getRequestType() {
    return requestType;
  }

  public void setRequestType(String requestType) {
    this.requestType = requestType;
  }

  public RealnameAuthCommonInsurResponseDTOResult requestCode(String requestCode) {
    this.requestCode = requestCode;
    return this;
  }

   /**
   * 请求编码
   * @return requestCode
  **/

  public String getRequestCode() {
    return requestCode;
  }

  public void setRequestCode(String requestCode) {
    this.requestCode = requestCode;
  }

  public RealnameAuthCommonInsurResponseDTOResult transDate(String transDate) {
    this.transDate = transDate;
    return this;
  }

   /**
   * 业务交易完成时间
   * @return transDate
  **/

  public String getTransDate() {
    return transDate;
  }

  public void setTransDate(String transDate) {
    this.transDate = transDate;
  }

  public RealnameAuthCommonInsurResponseDTOResult customerDataDTOS(List<RealnameAuthCustomerDataDTOResult> customerDataDTOS) {
    this.customerDataDTOS = customerDataDTOS;
    return this;
  }

  public RealnameAuthCommonInsurResponseDTOResult addCustomerDataDTOSItem(RealnameAuthCustomerDataDTOResult customerDataDTOSItem) {
    if (this.customerDataDTOS == null) {
      this.customerDataDTOS = new ArrayList<>();
    }
    this.customerDataDTOS.add(customerDataDTOSItem);
    return this;
  }

   /**
   * 客户信息集合
   * @return customerDataDTOS
  **/

  public List<RealnameAuthCustomerDataDTOResult> getCustomerDataDTOS() {
    return customerDataDTOS;
  }

  public void setCustomerDataDTOS(List<RealnameAuthCustomerDataDTOResult> customerDataDTOS) {
    this.customerDataDTOS = customerDataDTOS;
  }


  @Override
  public boolean equals(java.lang.Object o) {
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
    RealnameAuthCommonInsurResponseDTOResult realnameAuthCommonInsurResponseDTOResult = (RealnameAuthCommonInsurResponseDTOResult) o;
    return ObjectUtils.equals(this.code, realnameAuthCommonInsurResponseDTOResult.code) &&
    ObjectUtils.equals(this.msg, realnameAuthCommonInsurResponseDTOResult.msg) &&
    ObjectUtils.equals(this.status, realnameAuthCommonInsurResponseDTOResult.status) &&
    ObjectUtils.equals(this.customerNo, realnameAuthCommonInsurResponseDTOResult.customerNo) &&
    ObjectUtils.equals(this.merchantNo, realnameAuthCommonInsurResponseDTOResult.merchantNo) &&
    ObjectUtils.equals(this.queryNo, realnameAuthCommonInsurResponseDTOResult.queryNo) &&
    ObjectUtils.equals(this.terminalNo, realnameAuthCommonInsurResponseDTOResult.terminalNo) &&
    ObjectUtils.equals(this.tradeNo, realnameAuthCommonInsurResponseDTOResult.tradeNo) &&
    ObjectUtils.equals(this.amount, realnameAuthCommonInsurResponseDTOResult.amount) &&
    ObjectUtils.equals(this.validateSequenceNo, realnameAuthCommonInsurResponseDTOResult.validateSequenceNo) &&
    ObjectUtils.equals(this.pealNamePaymentFlag, realnameAuthCommonInsurResponseDTOResult.pealNamePaymentFlag) &&
    ObjectUtils.equals(this.requestType, realnameAuthCommonInsurResponseDTOResult.requestType) &&
    ObjectUtils.equals(this.requestCode, realnameAuthCommonInsurResponseDTOResult.requestCode) &&
    ObjectUtils.equals(this.transDate, realnameAuthCommonInsurResponseDTOResult.transDate) &&
    ObjectUtils.equals(this.customerDataDTOS, realnameAuthCommonInsurResponseDTOResult.customerDataDTOS);
  }

  @Override
  public int hashCode() {
    return ObjectUtils.hashCodeMulti(code, msg, status, customerNo, merchantNo, queryNo, terminalNo, tradeNo, amount, validateSequenceNo, pealNamePaymentFlag, requestType, requestCode, transDate, customerDataDTOS);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RealnameAuthCommonInsurResponseDTOResult {\n");
    
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    msg: ").append(toIndentedString(msg)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    customerNo: ").append(toIndentedString(customerNo)).append("\n");
    sb.append("    merchantNo: ").append(toIndentedString(merchantNo)).append("\n");
    sb.append("    queryNo: ").append(toIndentedString(queryNo)).append("\n");
    sb.append("    terminalNo: ").append(toIndentedString(terminalNo)).append("\n");
    sb.append("    tradeNo: ").append(toIndentedString(tradeNo)).append("\n");
    sb.append("    amount: ").append(toIndentedString(amount)).append("\n");
    sb.append("    validateSequenceNo: ").append(toIndentedString(validateSequenceNo)).append("\n");
    sb.append("    pealNamePaymentFlag: ").append(toIndentedString(pealNamePaymentFlag)).append("\n");
    sb.append("    requestType: ").append(toIndentedString(requestType)).append("\n");
    sb.append("    requestCode: ").append(toIndentedString(requestCode)).append("\n");
    sb.append("    transDate: ").append(toIndentedString(transDate)).append("\n");
    sb.append("    customerDataDTOS: ").append(toIndentedString(customerDataDTOS)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  private final Map<String, Object> _extParamMap = new HashMap<>();

  @JsonAnySetter
  public Map<String, Object> addParam(String name, Object value) {
    if (null != name && null != value) {
      _extParamMap.put(name, value);
    }
    return _extParamMap;
  }

  @JsonAnyGetter
  public Map<String, Object> get_extParamMap() {
    return _extParamMap;
  }

  @JsonIgnore
  public <T> T get_extParam(String name) {
    return (T) _extParamMap.get(name);
  }

}

